package com.hottop.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hottop.system.domain.SysAnnouncement;
import org.apache.ibatis.annotations.Mapper;

/**
 * 系统公告数据Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-19
 */
@Mapper
public interface SysAnnouncementMapper  extends BaseMapper<SysAnnouncement>
{
    /**
     * 查询系统公告数据
     * 
     * @param id 系统公告数据主键
     * @return 系统公告数据
     */
    public SysAnnouncement selectSysAnnouncementById(Long id);

    /**
     * 查询系统公告数据列表
     * 
     * @param sysAnnouncement 系统公告数据
     * @return 系统公告数据集合
     */
    public List<SysAnnouncement> selectSysAnnouncementList(SysAnnouncement sysAnnouncement);

    /**
     * 新增系统公告数据
     * 
     * @param sysAnnouncement 系统公告数据
     * @return 结果
     */
    public int insertSysAnnouncement(SysAnnouncement sysAnnouncement);

    /**
     * 修改系统公告数据
     * 
     * @param sysAnnouncement 系统公告数据
     * @return 结果
     */
    public int updateSysAnnouncement(SysAnnouncement sysAnnouncement);

    /**
     * 删除系统公告数据
     * 
     * @param id 系统公告数据主键
     * @return 结果
     */
    public int deleteSysAnnouncementById(Long id);

    /**
     * 批量删除系统公告数据
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysAnnouncementByIds(Long[] ids);
}
